import Vue from 'vue'
import App from './App'
import uView from 'uview-ui'

Vue.config.productionTip = false
let midButtonList = [
					{
						img: '../../static/icon/loufang.png',
						text: '楼栋',
						page:'../InformationCollection/building-add/building-add'
					},
					{
						img: '../../static/icon/fangwu.png',
						text: '房屋',
						page:'../InformationCollection/House/AddHouse/AddHouse',
					},
					{
						page:'../InformationCollection/Courtyard/Courtyard-add/Courtyard-add',
						img: '../../static/icon/xiaoqu.png',
						text: '小区'
					},
					{
						page:'../InformationCollection/Domicile/Domicile-add/Domicile-add',
						img: '../../static/icon/huji.png',
						text: '户籍'
					},
					{
						page:'../InformationCollection/Population/Population-add/Population-add',
						img: '../../static/icon/renkou.png',
						text: '人口'
					},
					{
						page:'../InformationCollection/keyPersonnel/keyPersonnel',
						img: '../../static/icon/icon_key_personnel.png',
						text: '重点人员'
					},
					{
						page:'../InformationCollection/Company/Company-add/Company-add',
						img: '../../static/icon/qiye_h11.png',
						text: '企业'
					},
					{
						page:'../InformationCollection/Hospital/Add/Add',
						img: '../../static/icon/icon_hospital.png',
						text: '医院'
					},
					{
						page:'../InformationCollection/School/Add/Add',
						img: '../../static/icon/xuexiaobeifen.png',
						text: '学校'
					},
					{
						page:'../InformationCollection/Shop/Shop-add/Shop-add',
						img: '../../static/icon/dianpu.png',
						text: '店铺'
					},
					{
						page:'../InformationCollection/Part/Part-add/Part-add',
						img: '../../static/icon/h5.png',
						text: '公共设施'
					},
					// {
					// 	page:'',
					// 	img: '../../static/icon/icon_road_railway_sections.png',
					// 	text: '铁路重点路段'
					// },
					{
						page:'../WorkSetting/AddPetitionManagement/AddPetitionManagement',
						img: '../../static/icon/xinfang1.png',
						text: '走访'
					},
					{
						page:'../ThingsList/ThingsUpload/ThingsUpload',
						img: '../../static/icon/shijian1.png',
						text: '事件'
					},
					
				]
Vue.prototype.midButtonList = midButtonList

App.mpType = 'app'

Vue.use(uView)
import store from '@/store';

const app = new Vue({
	store,
  ...App
})
// http拦截器，此为需要加入的内容，如果不是写在common目录，请自行修改引入路径
import httpInterceptor from '@/common/http.interceptor.js'
// 这里需要写在最后，是为了等Vue创建对象完成，引入"app"对象(也即页面的"this"实例)
Vue.use(httpInterceptor, app)
// http接口API集中管理引入部分
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);
app.$mount()

